﻿<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">QQ客服号</label>
        <div class="layui-input-inline">
            <input type="text" name="qq1" required lay-verify="required" placeholder="请输入客服QQ号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">现在QQ号为：295265781</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">QQ客服号</label>
        <div class="layui-input-inline">
            <input type="text" name="qq2" required lay-verify="required" placeholder="请输入客服QQ号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">现在QQ号为：295265782</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">QQ客服号</label>
        <div class="layui-input-inline">
            <input type="text" name="qq3" required lay-verify="required" placeholder="请输入客服QQ号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">现在QQ号为：295265783</div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            @*<button type="reset" class="layui-btn layui-btn-primary">重置</button>*@
        </div>
    </div>
</form>

<script>
//Demo
layui.use('form', function(){
  var form = layui.form;

  //监听提交
  form.on('submit(formDemo)', function(data){
    //layer.msg(JSON.stringify(data.field));
      layer.msg("已保存")
    return false;
  });
});
</script>